]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dialog: Remove addContent function
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 5 Dec 2019 07:55:16 +0000 (08:55 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 14 Jan 2020 23:05:02 +0000 (00:05 +0100)
Now that child metas are removed, there's no need for a custom
`addContent` function anymore. It was only used in one place anyway...

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/886

js/ui/closeDialog.js
js/ui/dialog.js

index 86d14059a5d52ebf31edf0af7ba80916696d2798..8353b56cbfe0ce0c222da24330e4833eb5b72341 100644 (file)
@@ -67,7 +67,7 @@ var CloseDialog = GObject.registerClass({
         this._dialog.width = windowActor.width;
         this._dialog.height = windowActor.height;
 
-        this._dialog.addContent(this._createDialogContent());
+        this._dialog.contentLayout.add_child(this._createDialogContent());
         this._dialog.addButton({ label: _('Force Quit'),
                                  action: this._onClose.bind(this),
                                  default: true });
index c2d2e04b61c735fae4cac174414b76ac42a2d1b2..0799ad27f35b2901f9624a75d2a9a73442b5b666 100644 (file)
@@ -99,10 +99,6 @@ class Dialog extends St.Widget {
         return this._initialKeyFocus || this;
     }
 
-    addContent(actor) {
-        this.contentLayout.add(actor, { expand: true });
-    }
-
     addButton(buttonInfo) {
         let { label, action, key } = buttonInfo;
         let isDefault = buttonInfo['default'];